log10
Logarithm with base 10
log10() has a logarithm with base 10.
In this example, we apply the log10() function to different numbers:
<?php echo ( log10 ( 2.7183 ) ) ; echo ( log10 ( 2 ) ) ; echo ( log10 ( 1 ) ) ; echo ( log10 ( 0 ) ) ; echo ( log10 ( - 1 ) ) ; ?>
Try it yourself
log10 ( x )
| parameter | describe |
|---|---|
| x | Required. A number. |
Returns the logarithm of parameter x with base 10.